﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="details.aspx.vb" Inherits="AfricanRecipes.details" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .auto-style1 {
            font-size: larger;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        <strong><span class="auto-style1">Here are some more details of your chosen recipe ! </span></strong>
    </p>
    <p>
        &nbsp;</p>
    <p>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="RecipeDataSource2">
            <Columns>
                <asp:BoundField DataField="recipeName" HeaderText="Recipe" SortExpression="recipeName" />
                <asp:BoundField DataField="originCountry" HeaderText="Country of Origin" SortExpression="originCountry" />
                <asp:BoundField DataField="ingredients" HeaderText="Ingredients" SortExpression="ingredients" />
                <asp:BoundField DataField="method" HeaderText="Method" SortExpression="method" />
                <asp:BoundField DataField="prepduration" HeaderText="Prep Time (minutes)" SortExpression="prepduration" />
                <asp:ImageField DataImageUrlField="mealpicture" HeaderText="Picture">
                </asp:ImageField>
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="RecipeDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:RecipeConnectionString %>" ProviderName="<%$ ConnectionStrings:RecipeConnectionString.ProviderName %>" SelectCommand="SELECT [recipeName], [originCountry], [ingredients], [method], [mealpicture], [prepduration] FROM [recipe] WHERE ([ID] = ?)">
            <SelectParameters>
                <asp:QueryStringParameter Name="ID" QueryStringField="ID" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
        <br />
    </p>
</asp:Content>
